#include<iostream>
using namespace std;
class Complex
{
private:
    double real,image;
public:
    Complex(double real_,double image_):real(real_),image(image_){}
    Complex operator+(const Complex& other)const
{
return Complex(real+other.real,image+other.image);
}
    void  printf();
};
void Complex::printf()
{
    cout<<"("<<real<<", "<<image<<")"<<endl;
}

int main()
{
    double real1,image1;
    cin>>real1>>image1;
    double real2,image2;
    cin>>real2>>image2;
    Complex a1(real1,image1);
    Complex a2(real2,image2);
    Complex a3=a1+a2;
    a3.printf();
}